﻿#ifndef NSSHARE_SYS_NETWORK_DEFINE_H_
#define NSSHARE_SYS_NETWORK_DEFINE_H_

#include "../platform.h"

namespace nsshare
{
namespace sys
{

namespace AddressFamily
{
enum Value
{
    kUnknown            = -1,
    kUnspecific         = AF_UNSPEC,
    kInterNetwork       = AF_INET,
    kInterNetworkV6     = AF_INET6,
};
}

namespace ProtocolType
{
enum Value
{
    kUnknown      = -1,
    kTCP          = IPPROTO_TCP,
    kUDP          = IPPROTO_UDP,
};
}

namespace SocketType
{
enum Value
{
    kUnknown        = -1,
    kStream         = SOCK_STREAM,
    kDgram          = SOCK_DGRAM, 
};
}

namespace SocketShutdown
{
enum Value
{
    kReceive = SD_RECEIVE,
    kSend    = SD_SEND,
    kBoth    = SD_BOTH,
};
}

}

}

#endif //NSSHARE_SYS_NETWORK_DEFINE_H_